<template>
	<view class="page">
		<!-- <view class="nav">
			<uni-icons type="left" color="#fff" class="icons" size="20" @click="back"></uni-icons>
			<view class="item" v-for="item,index in nav" :class="select_index == index ? 'select' :''"
				@click="select_index = index">
				{{item}}
			</view>
		</view>
		<view class="pay_box">

			<view class="tishiwenzi" v-if="select_index == 0 ">
				<view class="">
					温馨提示：入金后需审核时间
				</view>
				<view class="">
					付款账号只能是客户签约的银行卡号，非签约卡则无法入金
				</view>
			</view>
			<view class="content_box" v-if="select_index == 0 ">
				<view class="label_box">
					<view class="titles">
						收款方姓名
					</view>
					<view class="content">
						<view class="text">
							{{yhk_data.mybankname}}
						</view>

						<view class="copy" @click="copyText(yhk_data.mybankname)">
							复制
						</view>
					</view>
				</view>
				<view class="label_box">
					<view class="titles">
						收款方账号
					</view>
					<view class="content">
						<view class="text">

							{{yhk_data.bankid}}
						</view>

						<view class="copy" @click="copyText(yhk_data.bankid)">
							复制
						</view>
					</view>
				</view>
				<view class="label_box">
					<view class="titles">
						收款方开户行
					</view>
					<view class="content">
						<view class="text">


							{{yhk_data.bankname}}
						</view>

						<view class="copy" @click="copyText(yhk_data.bankname)">
							复制
						</view>
					</view>
				</view>
				<view class="label_box">
					<view class="titles">
						收款方支行名称
					</view>
					<view class="content">
						<view class="text">

							{{yhk_data.bankaddress}}
						</view>

						<view class="copy" @click="copyText(yhk_data.bankaddress)">
							复制
						</view>
					</view>
				</view>
				<view class="label_box">
					<view class="titles">
						银行卡充值金额
					</view>
					<view class="chongzhi_input">
						<input type="text" v-model="parice_yhk" placeholder="请输入充值金额" />

						<view class="button" @click="chongzhi(pay_value='yhk')">
							确认
						</view>
					</view>
				</view>
				<view class="label_box">
					<view class="titles">
						银行卡充值金额
					</view>
					<view class="example-body custom-image-box">
						<uni-file-picker @select="legalIdCardProsPathselect" limit="1" ref="filePicker"
							:del-icon="false" disable-preview :imageStyles="imageStyles" file-mediatype="image">
							<view class="">
								点击上传交易凭证
							</view>
						</uni-file-picker>
					</view>
				</view>
			</view>
			<view class="tishiwenzi" v-if="select_index == 1 ">
				<view class="">
					温馨提示：不支持农业银行
				</view>
				<view class="">
					签约要素：卡号+姓名+证件号码+手机号
				</view>
				<view class="fujianbiao" @click="go_word_pages()">

				</view>
			</view>

			<view class="content_box" v-if="select_index == 1  && error_code ==  1">
				<view class="label_box">
					<view class="titles" style="display: flex;justify-content: space-between;">
						<span>持卡人姓名</span>
						<span class="weiqianyue"></span>
					</view>
					<view class="chongzhi_input">
						<input v-model="holderName" class="uni-input" type="" placeholder="请填写持卡人姓名" />
					</view>
				</view>
				<view class="label_box">
					<view class="titles">
						银行卡号
					</view>
					<view class="chongzhi_input">
						<input v-model="cardNo" class="uni-input" type="number" placeholder="请填写银行卡号" />
					</view>
				</view>
				<view class="label_box">
					<view class="titles">
						绑卡类型
					</view>
					<view class="chongzhi_input">
						<radio-group style="display: flex;width: 100%;justify-content: space-around;"
							@change="radioChange">
							<label style="display: flex;margin: 0 10rpx;" v-for="(item,index) in radioItems"
								:key="index">
								<view>
									<radio :id="item.name" :value="item.name" :checked="item.checked"></radio>
								</view>

								<view>
									<label class="label-2-text" :for="item.name">
										<text>{{item.value}}</text>
									</label>
								</view>
							</label>
						</radio-group>
					</view>
				</view>
				<view class="label_box" v-if="isxinyongka">
					<view class="titles">
						信用卡有效期
					</view>
					<view class="chongzhi_input">
						<picker style="flex: 1;text-align: center;" mode="date" fields="month" :value="date"
							:start="startDate" :end="endDate" @change="bindDateChange">
							<view class="uni-input">{{date}}</view>
						</picker>

					</view>
				</view>
				<view class="label_box" v-if="isxinyongka">
					<view class="titles">
						安全校验码
					</view>
					<view class="chongzhi_input">
						<input v-model="cvv2" class="uni-input" type="number" maxlength="3" placeholder="请填写校验码" />
					</view>
				</view>
				<view class="label_box">
					<view class="titles">
						预留手机号
					</view>
					<view class="chongzhi_input">
						<input v-model="mobileNo" class="uni-input" type="number" placeholder="请填写银行卡预留手机号" />
					</view>
				</view>
				<view class="label_box">
					<view class="titles">
						身份证号码
					</view>
					<view class="chongzhi_input">
						<input v-model="identityCode" class="uni-input" type="" placeholder="请填写身份证号码" />
					</view>
				</view>
				<view class="label_box">
					<view class="titles">
						验证码
					</view>
					<view class="chongzhi_input content">
						<input v-model="smsCode" class="uni-input" type="number" placeholder="请填写验证码" />

						<button class="copy " @click="get_code()" :disabled="set_ajex"
							style=" width: 30%;background-color: transparent;outline: none;font-size: 32rpx;">
							{{settxt()}}
						</button>

					</view>

				</view>

				<view class="qianyue_anniu" @click="sure_qianyue()">
					立即签约
				</view>
			</view>

			<view class="content_box" v-show="select_index == 1  && error_code ==  0">
				<view class="label_box">
					<view class="titles" style="display: flex;justify-content: space-between;">
						<span>充值金额 </span>
						<span class="yiqianyue" @click="quxiaoqianyue"></span>
					</view>
					<view class="chongzhi_input">
						<input v-model="parice_xs" class="uni-input" type="number" placeholder="请输入充值金额" />
					</view>
				</view>

				<view class="qianyue_anniu" @click="chongzhi(pay_value='xs')">
					充&nbsp;&nbsp;值
				</view>
			</view>

			<uni-popup ref="inputDialog" type="dialog">
				<uni-popup-dialog ref="inputClose" mode="input" modeClass="" :titles="message" value=""
					placeholder="请输入验证码" @confirm="suer_chongzhi"></uni-popup-dialog>
			</uni-popup>
		</view> -->




		<view class="nav">
			<uni-icons type="left" color="#fff" class="icons" size="20" @click="back"></uni-icons>
			<view class="item" v-for="item,index in nav" :class="select_index == index ? 'select' :''"
				@click="select_index = index">
				{{item}}
			</view>
		</view>


		<view class="pay_box">
			<view class="tishiwenzi" v-show="select_index == 0 ">
				<view class="">
					温馨提示：入金后需审核时间
				</view>
				<view class="">
					付款账号只能是客户签约的银行卡号，非签约卡则无法入金
				</view>
			</view>
			<view class="content_box" v-show="select_index == 0 ">
				<!-- <view class="content_box_chakan" @click="showinteraction('暂未开放')"> -->
				<view class="content_box_chakan" @click="gotuFun('/pages/wallet/mingxi/mingxi')">
					审核查看
				</view>

				<view class="label_box">
					<view class="titles">
						收款方姓名
					</view>
					<view class="content">
						<view class="text">
							{{yhk_data.mybankname}}
						</view>

						<view class="copy" @click="copyText(yhk_data.mybankname)">
							复制
						</view>
					</view>
				</view>
				<view class="label_box">
					<view class="titles">
						收款方账号
					</view>
					<view class="content">
						<view class="text">

							{{yhk_data.bankid}}
						</view>

						<view class="copy" @click="copyText(yhk_data.bankid)">
							复制
						</view>
					</view>
				</view>
				<view class="label_box">
					<view class="titles">
						收款方开户行
					</view>
					<view class="content">
						<view class="text">


							{{yhk_data.bankname}}
						</view>

						<view class="copy" @click="copyText(yhk_data.bankname)">
							复制
						</view>
					</view>
				</view>
				<view class="label_box">
					<view class="titles">
						收款方支行名称
					</view>
					<view class="content">
						<view class="text">

							{{yhk_data.bankaddress}}
						</view>

						<view class="copy" @click="copyText(yhk_data.bankaddress)">
							复制
						</view>
					</view>
				</view>
				<view class="label_box">
					<view class="titles">
						银行卡充值金额
					</view>
					<view class="chongzhi_input">
						<input type="text" v-model="parice_yhk" placeholder="请输入充值金额" />

						<view class="button" @click="chongzhi(pay_value='yhk')">
							确认
						</view>
					</view>
				</view>
				<view class="label_box">
					<view class="titles">
						银行卡充值金额
					</view>
					<view class="example-body custom-image-box">
						<uni-file-picker @select="legalIdCardProsPathselect" limit="1" ref="filePicker"
							:del-icon="false" disable-preview :imageStyles="imageStyles" file-mediatype="image">
							<view class="">
								点击上传交易凭证
							</view>
						</uni-file-picker>
					</view>
				</view>
			</view>
			<view class="tishiwenzi" v-show="select_index == 1 ">
				<view class="">
					温馨提示：不支持农业银行
				</view>
				<view class="">
					签约要素：卡号+姓名+证件号码+手机号
				</view>
				<view class="fujianbiao" @click="go_word_pages()">

				</view>
			</view>

			<view class="content_box" v-show="select_index == 1  && error_code ==  1">
				<view class="label_box">
					<view class="titles" style="display: flex;justify-content: space-between;">
						<span>持卡人姓名</span>
						<span class="weiqianyue"></span>
					</view>
					<view class="chongzhi_input">
						<input v-model="holderName" class="uni-input" type="" placeholder="请填写持卡人姓名" />
					</view>
				</view>
				<view class="label_box">
					<view class="titles">
						银行卡号
					</view>
					<view class="chongzhi_input">
						<input v-model="cardNo" class="uni-input" type="number" placeholder="请填写银行卡号" />
					</view>
				</view>
				<view class="label_box">
					<view class="titles">
						绑卡类型
					</view>
					<view class="chongzhi_input">
						<radio-group style="display: flex;width: 100%;justify-content: space-around;"
							@change="radioChange">
							<label style="display: flex;margin: 0 10rpx;" v-for="(item,index) in radioItems"
								:key="index">
								<view>
									<radio :id="item.name" :value="item.name" :checked="item.checked"></radio>
								</view>

								<view>
									<label class="label-2-text" :for="item.name">
										<text>{{item.value}}</text>
									</label>
								</view>
							</label>
						</radio-group>
					</view>
				</view>
				<view class="label_box" v-if="isxinyongka">
					<view class="titles">
						信用卡有效期
					</view>
					<view class="chongzhi_input">
						<picker style="flex: 1;text-align: center;" mode="date" fields="month" :value="date"
							:start="startDate" :end="endDate" @change="bindDateChange">
							<view class="uni-input">{{date}}</view>
						</picker>

					</view>
				</view>
				<view class="label_box" v-if="isxinyongka">
					<view class="titles">
						安全校验码
					</view>
					<view class="chongzhi_input">
						<input v-model="cvv2" class="uni-input" type="number" maxlength="3" placeholder="请填写校验码" />
					</view>
				</view>
				<view class="label_box">
					<view class="titles">
						预留手机号
					</view>
					<view class="chongzhi_input">
						<input v-model="mobileNo" class="uni-input" type="number" placeholder="请填写银行卡预留手机号" />
					</view>
				</view>
				<view class="label_box">
					<view class="titles">
						身份证号码
					</view>
					<view class="chongzhi_input">
						<input v-model="identityCode" class="uni-input" type="" placeholder="请填写身份证号码" />
					</view>
				</view>
				<view class="label_box">
					<view class="titles">
						验证码
					</view>
					<view class="chongzhi_input content">
						<input v-model="smsCode" class="uni-input" type="number" placeholder="请填写验证码" />

						<button class="copy " @click="get_code()" :disabled="set_ajex"
							style=" width: 30%;background-color: transparent;outline: none;font-size: 32rpx;">
							{{settxt()}}
						</button>

					</view>

				</view>

				<view class="qianyue_anniu" @click="sure_qianyue()">
					立即签约
				</view>
			</view>

			<view class="content_box" v-show="select_index == 1  && error_code ==  0">
				<view class="label_box">
					<view class="titles" style="display: flex;justify-content: space-between;">
						<span>充值金额 </span>
						<p><span class="yiqianyue" @click="quxiaoqianyue"></span>
							<span class="yiqianyue1"></span>
						</p>
					</view>
					<view class="chongzhi_input">
						<input v-model="parice_xs" class="uni-input" type="" placeholder="请输入充值金额" />
					</view>
				</view>
				<!-- 
					<view class="qianyue_anniu" @click="chongzhi(pay_value='xs')">
						充&nbsp;&nbsp;值
					</view> -->
				<view class="rideos_box">
					<radio-group name="" @change="get_radio">
						<label>
							<radio value="0" color="#6F3D00" :checked="true" /><text>本账号充值</text>
							<input type="text" v-model="mobile" disabled />
						</label>
						<label>
							<radio value="1" color="#6F3D00" /><text>其他账号充值</text>
							<input type="text" v-model="cz_mobile" />
						</label>
					</radio-group>
					<view class="" style="font-size: 24rpx;color: #FA0505;">
						#请注意核对您需充值的帐号，充值成功后无法退回
					</view>
					<view class="bottom_button">
						<view class="button">
							取&nbsp;消
						</view>
						<view class="button" @click="chongzhi(pay_value='xs')">
							确&nbsp;认
						</view>
					</view>
				</view>

			</view>

			<uni-popup ref="inputDialog" type="dialog">
				<uni-popup-dialog ref="inputClose" mode="input" modeClass="" :titles="message" value=""
					placeholder="请输入验证码" @confirm="suer_chongzhi"></uni-popup-dialog>
			</uni-popup>
		</view>



	</view>
</template>

<script>
	import {
		api_index_yz_pay_order, //首信支付
		api_index_recharge, //银行卡支付
		api_index_bank_info, //获取公司账户信息
		api_index_get_xs_signing, // 获取签约信息
		api_index_xs_create_order, //新生支付
		api_index_xs_termination, //取消新生支付签约
		api_index_xs_get_smsCode, //新生支付签约获取验证码
		api_index_xs_signing,
		api_index_xs_pay_order,
		api_index_xs_pay_success
	} from '@/api/wallet.js'
	export default {
		data() {
			const currentDate = this.getDate({
				format: true
			})
			return {
				nav: [
					'银行入金',
					'新生入金',
				],
				select_index: 0,
				parice_yhk: '',
				yhk_data: '',
				error_code: '',
				sxyzf: '',

				imageStyles: {
					width: '100%',
					height: 220,

				},


				holderName: '',
				cardNo: '',
				radioItems: [{
						name: '1',
						value: '储蓄卡',
						checked: 'true'
					},
					{
						name: '2',
						value: '信用卡',
					}
				],
				isxinyongka: false,
				date: '请选择有效期',
				cvv2: '',
				mobileNo: '',
				identityCode: '',

				smsCode: '',
				set_ajex: false,
				sec: 60, // 倒计预设15秒
				parice_xs: '',
				message: '',
				scm_id: '',
				mobile: '',
				chongzhi_type: 0,
				cz_mobile: ''
			};
		},
		computed: {
			startDate() {
				return this.getDate('start');
			},
			endDate() {
				return this.getDate('end');
			}
		},
		onShow: function() {

			uni.getStorage({
				key: 'openid',
				success: (res) => {
					this.openid = res.data
					// this.get_data()
					this.get_yhkdata()
				},
				fail: () => {
					uni.reLaunch({
						url: '/pages/login/login'
					});
				}
			});

		},
		watch: {
			select_index(r) {
				console.log(r);
				if (r === 1) {
					if (this.error_code !== '') return
					this.get_data1()
				}
			}
		},
		methods: {
			//提示
			showinteraction(titles, icon = 'none') {
				uni.showToast({
					titles,
					icon,
					duration: 2000,
					mask: false
				})
			},
			gotuFun(url) {
				uni.navigateTo({
					url
				})
			},
			get_radio(e) {
				console.log(e.detail);
				this.chongzhi_type = e.detail.value
			},
			copyText(text) {
				uni.setClipboardData({
					data: text,
					success: function() {
						console.log('复制成功');
						// 可以添加用户友好的提示，例如使用uni.showToast提示复制成功
						uni.showToast({
							title: '复制成功',
							icon: 'none',
							duration: 2000
						});
					},
					fail: function() {
						console.log('复制失败');
						// 可以添加错误处理或用户友好的提示
					}
				});
			},
			quxiaoqianyue() {
				let _this = this
				uni.showModal({
					titles: '温馨提示',
					content: '确定取消签约吗？',
					cancelText: '取消',
					confirmText: '确认',
					confirmColor: '#628EFE',
					confirmColor: "#628EFE",
					success(res) {
						if (res.confirm) {
							_this.sure_quxiaoqianyue()
						}


					}
				})
			},
			go_word_page(e) {
				var path = e
				uni.navigateTo({
					url: path
				});
			},
			go_word_pages(e) {
				var _this = this
				uni.showActionSheet({
					itemList: ['储蓄卡', '信用卡'],
					success: function(res) {
						_this.go_word_page(`/pages/wallet/fujian/fujian${res.tapIndex+1}?e=${res.tapIndex}`)
					},
					fail: function(res) {
						console.log(res.errMsg);
					}
				});
			},
			async sure_quxiaoqianyue() {
				var openid = this.openid;
				let data = await api_index_xs_termination(openid);
				this.error_code = 1;
			},
			async sure_qianyue() {
				let up = {
					openid: this.openid,
					smsCode: this.smsCode
				}
				let data = await api_index_xs_signing(up);
				var code = data.error
				if (code == 0) {
					this.error_code = code
				} else if (code != 0) {
					uni.showToast({
						title: data.message,
						icon: 'none',
						duration: 1500,
						position: 'center',
					})
				}
			},
			countDownTimer() {
				if (this.sec > 0 && this.set_ajex == true) {
					setTimeout(() => {
						this.sec -= 1
						this.countDownTimer()

					}, 1000)
				} else {
					this.set_ajex = false
				}
			},
			async get_code() {
				if (this.cardNo == '' || this.holderName == '' || this.mobileNo == '' || this.identityCode ==
					'') {
					uni.showToast({
						title: '有值未填写!',
						icon: 'none',
						duration: 1500,
						position: 'center',
					})
				} else {
					var openid = this.openid
					this.set_ajex = true
					let up = {
						openid: this.openid,
						cardNo: this.cardNo,
						holderName: this.holderName,
						mobileNo: this.mobileNo,
						identityCode: this.identityCode,
						cardAvailableDate: this.date,
						cvv2: this.cvv2,
						cardType: this.type

					}
					let data = await api_index_xs_get_smsCode(up);
					var code = data.error;
					this.countDownTimer()
					if (code != 0) {
						this.set_ajex = false
					}
				}

			},
			settxt() {
				if (this.set_ajex) {
					return `${this.sec}秒`
				} else {
					this.sec = 60;
					return "获取验证码"
				}
			},
			back() {
				uni.navigateBack()
			},
			bindDateChange(e) {
				let year = e.detail.value.split('-')[0].slice(2);
				this.date = e.detail.value.split('-')[1] + year;
			},
			getDate(type) {
				const date = new Date();
				let year = date.getFullYear();
				let month = date.getMonth() + 1;
				let day = date.getDate();

				if (type === 'start') {
					year = year - 60;
				} else if (type === 'end') {
					year = year + 2;
				}
				month = month > 9 ? month : '0' + month;
				day = day > 9 ? day : '0' + day;
				return `${month}/${year}`;
			},
			radioChange(e) {
				console.log(e.detail.value);
				this.date = '请选择有效期';
				this.cvv2 = '';
				this.type = e.detail.value;
				if (e.detail.value * 1 === 2) {
					this.isxinyongka = true;
				} else {
					this.isxinyongka = false;
				}
			},
			async get_yhkdata() {
				let data = await api_index_bank_info(this.openid);
				console.log(data);
				this.yhk_data = data;

			},
			async get_data1() {
				let data = await api_index_get_xs_signing(this.openid);
				console.log(data);
				var code = data.error;
				this.error_code = code;
				this.sxyzf = data;
				this.mobile = data.mobile
			},
			legalIdCardProsPathselect(e) {
				console.log('选择文件：', e)
				console.log(this.$BASE_URL);
				var filePath = e.tempFilePaths[0]

				var _this = this

				uni.uploadFile({
					url: this.$BASE_URL +
						'/index.php?i=2&c=entry&m=ewei_shopv2&do=mobile&r=util.uploader&app=1',

					filePath: filePath,
					name: 'file',
					formData: {
						'user': 'test'
					},
					success: (res) => {

						var data = JSON.parse(res.data)


						if (data.error == 0) {

							_this.yhk_jypz = data.url


						} else {


							_this.yhk_jypz = ''
							uni.showToast({
								title: '文件上传失败',
								icon: 'none'
							})
							_this.$refs.filePicker.clearFiles();
						}
					},
					fail() {

					}
				});

			},
			async chongzhi() {
				console.log(this.pay_value);
				var _this = this
				var openid = this.openid
				var num = this.parice_num
				if (this.pay_value == 'xs') {
					console.log('-------------');
					if (this.parice_xs == '') {
						return
					}
					if (this.error_code != 0) {
						uni.showToast({
							icon: 'none',
							title: '你还未短信签约'
						})
						return
					}


					let up = {
						openid: this.openid,
						num: this.parice_xs,
						cz_mobile: ''
					}
					up.type = this.chongzhi_type
					if (this.chongzhi_type == 1) {
						up.cz_mobile = this.cz_mobile
					} else {
						up.cz_mobile = ''
					}
					// console.log(up);
					let data = await api_index_xs_create_order(up)
					this.message = data.message;
					this.scm_id = data.id;
					if (data.error === 0) {
						this.$refs.inputDialog.open();
					}
				} else if (this.pay_value == 'yhk') {

					if (this.parice_yhk == '' && this.yhk_jypz == '') {
						return
					}
					let up = {
						pic_url: this.yhk_jypz,
						money: this.parice_yhk,
						openid: this.openid
					}
					let data = await api_index_recharge(up);
					console.log(data);

					this.$refs.filePicker.clearFiles(0);
					this.parice_yhk = '';
					this.yhk_jypz = '';

					if (data.error === 0) {
						setTimeout(() => {
							uni.navigateTo({
								url: '/pages/wallet/mingxi/mingxi'
							})
						}, 1500)
					}

				}

			},
			async suer_chongzhi(value) {
				console.log(value);
				var openid = this.openid
				var smsCode = value
				var id = this.scm_id;
				let up = {
					openid,
					smsCode,
					id,
				}
				let data = await api_index_xs_pay_order(up)
				console.log(data);
				if (data.error == 0) {
					var code = data.error;
					this.error_code = code;
					this.chaxun_data();
				}
			},
			async chaxun_data() {
				var openid = this.openid
				var id = this.scm_id;
				let up = {
					openid,
					id
				}
				let data = await api_index_xs_pay_success(up)
				var code = data.error
				if (code != 0) {
					setTimeout(() => {
						this.chaxun_data()
					}, 2000)
				} else {
					setTimeout(() => {
						uni.reLaunch({
							url: '/pages/wallet/wallet'
						})
					}, 1500)
				}
			}
		}
	}
</script>

<style lang="less">
	// 	@top: var(--status-bar-height); //自定义顶部导航栏需要的高度

	// 	.page {
	// 		background-color: #F6F6F6;
	// 		display: flex;
	// 		flex-direction: column;
	// 		height: 100vh;
	// 		width: 100%;
	// 	}

	// 	.nav {
	// 		background-color: #8a80ff;
	// 		height: 80rpx;
	// 		display: flex;
	// 		justify-content: space-evenly;
	// 		padding: calc(@top + 20rpx) 0;
	// 		color: #fff;
	// 		// position: fixed;
	// 		// top: 0;
	// 		width: 100vw;
	// 		position: relative;

	// 		.item {
	// 			width: 145rpx;
	// 			font-size: 33rpx;
	// 			text-align: center;
	// 			height: 40rpx;
	// 		}

	// 		.icons {
	// 			position: absolute;
	// 			top: 0;
	// 			bottom: 0;
	// 			left: 15rpx;
	// 			margin: 0 auto;
	// 			display: flex;
	// 			align-items: center;
	// 			width: 50rpx;
	// 		}

	// 		.select {
	// 			color: #FFD489;
	// 			position: relative;
	// 		}

	// 		.select::before {
	// 			content: '';
	// 			width: 55.1rpx;
	// 			height: 4rpx;
	// 			background-color: #FFD489;
	// 			position: absolute;
	// 			bottom: -22rpx;
	// 			right: 0;
	// 			left: 0;
	// 			margin: auto;
	// 		}
	// 	}


	// 	.pay_box {
	// 		flex: 1;
	// 		width: 100%;
	// 		overflow-y: auto;
	// 	}

	// 	.tishiwenzi {
	// 		// margin-top: calc(@top + 80rpx);
	// 		width: 750rpx;
	// 		height: 148rpx;
	// 		background-color: #FAE9C6;
	// 		color: #6F3D00;
	// 		font-size: 26rpx;
	// 		display: flex;
	// 		flex-wrap: wrap;
	// 		padding: 40rpx 45rpx 27rpx 29rpx;
	// 		font-weight: 600;
	// 		box-sizing: border-box;
	// 		position: relative;

	// 		.fujianbiao {
	// 			width: 134rpx;
	// 			height: 48rpx;
	// 			position: absolute;
	// 			top: 0;
	// 			bottom: 0;
	// 			right: 56rpx;
	// 			margin: auto;
	// 			background: url('/static/qianbao/fujianbiao.png');
	// 			background-size: 100% 100%;
	// 		}
	// 	}

	// 	.content_box {
	// 		// margin-top: 42rpx;
	// 		width: 750rpx;
	// 		padding: 20rpx 25rpx;
	// 		box-sizing: border-box;

	// 		.label_box {

	// 			.titles {
	// 				font-size: 24rpx;
	// 				color: #999;
	// 				margin: 13rpx 0;
	// 				background-color: rgba(0, 0, 0, .0);
	// 			}

	// 			.content {
	// 				width: 700rpx;
	// 				height: 98rpx;
	// 				display: flex;
	// 				background-color: #fff;
	// 				border-radius: 15rpx;
	// 				display: flex;
	// 				justify-content: space-between;
	// 				align-items: center;
	// 				font-size: 30rpx;

	// 				.text {
	// 					margin-left: 56rpx;
	// 					color: #000;
	// 				}

	// 				.copy {
	// 					width: 152rpx;
	// 					border-left: 1px solid #F6F6F6;
	// 					height: 51rpx;
	// 					line-height: 51rpx;
	// 					text-align: center;
	// 					color: #6F3D00;
	// 				}
	// 			}

	// 			.chongzhi_input {
	// 				width: 700rpx;
	// 				height: 98rpx;
	// 				display: flex;
	// 				background-color: #fff;
	// 				border-radius: 15rpx;
	// 				display: flex;
	// 				justify-content: space-between;
	// 				align-items: center;
	// 				font-size: 30rpx;

	// 				input {
	// 					margin-left: 56rpx;
	// 					flex: 1;
	// 					height: 98rpx;
	// 					line-height: 98rpx;
	// 				}

	// 				.button {
	// 					background-color: #FAE9C6;
	// 					width: 272rpx;
	// 					height: 98rpx;
	// 					border-radius: 15rpx;
	// 					text-align: center;
	// 					line-height: 98rpx;
	// 					color: #6F3D00;
	// 				}
	// 			}

	// 			.custom-image-box {
	// 				background-color: #fff;
	// 			}
	// 		}
	// 	}


	// 	.copy::after {
	// 		border: none !important;
	// 	}

	// 	.qianyue_anniu {
	// 		width: 650rpx;
	// 		height: 88rpx;
	// 		background: radial-gradient(#FFCA6B, #FFD58C);
	// 		border-radius: 15rpx;
	// 		margin: 20rpx auto;
	// 		text-align: center;
	// 		line-height: 88rpx;
	// 		font-size: 32rpx;
	// 	}

	// 	.weiqianyue {
	// 		width: 134rpx;
	// 		height: 48rpx;
	// 		display: inline-block;
	// 		background: url('/static/qianbao/weiqianyue.png');
	// 		background-size: 100% 100%;
	// 		margin-right: 35rpx;
	// 	}

	// 	.yiqianyue {
	// 		width: 134rpx;
	// 		height: 48rpx;
	// 		display: inline-block;
	// 		background: url('/static/qianbao/yiqianyue.png');
	// 		background-size: 100% 100%;
	// 		margin-right: 35rpx;
	// 	}
</style>

<style lang="less">
	.rideos_box {
		width: 700rpx;
		height: 400rpx;
		border-radius: 15rpx;
		background-color: #fff;
		padding: 46rpx 45rpx 0 41rpx;
		margin-top: 26rpx;

		label {
			display: flex;
			justify-content: space-between;

			align-items: center;
			margin-bottom: 21rpx;

			text {
				width: 190rpx;
				font-size: 28rpx;
			}

			input {
				width: 350rpx;
				height: 74rpx;
				border: 1rpx solid #dedede;
				border-radius: 10rpx;
				padding-left: 32rpx;
				box-sizing: border-box;
			}
		}

		.bottom_button {
			display: flex;
			justify-content: space-between;
			margin-top: 30rpx;

			.button {
				width: 282.6rpx;
				height: 75rpx;
				background: radial-gradient(#FFCA6B, #FFD58C);
				border-radius: 15rpx;
				// margin: 20rpx auto;
				text-align: center;
				line-height: 75rpx;
				font-size: 32rpx;
			}
		}

	}
</style>
<style lang="less">
	@top: var(--status-bar-height); //自定义顶部导航栏需要的高度

	.page {
		background-color: #F6F6F6;
		display: flex;
		flex-direction: column;
		height: 100vh;
	}

	.nav {
		background-color: #eb2864;
		height: 80rpx;
		display: flex;
		justify-content: space-evenly;
		padding: calc(@top + 20rpx) 0;
		color: #fff;
		// position: fixed;
		// top: 0;
		width: 100vw;
		position: relative;

		.item {
			width: 145rpx;
			font-size: 33rpx;
			text-align: center;
			height: 40rpx;
		}

		.icons {
			position: absolute;
			top: 0;
			bottom: 0;
			left: 15rpx;
			margin: 0 auto;
			display: flex;
			align-items: center;
			width: 50rpx;
		}

		.select {
			color: #FFD489;
			position: relative;
		}

		.select::before {
			content: '';
			width: 55.1rpx;
			height: 4rpx;
			background-color: #FFD489;
			position: absolute;
			bottom: -22rpx;
			right: 0;
			left: 0;
			margin: auto;
		}
	}


	.pay_box {
		flex: 1;
		overflow-y: auto;
	}


	.tishiwenzi {
		// margin-top: calc(@top + 80rpx);
		width: 750rpx;
		height: 148rpx;
		background-color: #FAE9C6;
		color: #6F3D00;
		font-size: 26rpx;
		display: flex;
		flex-wrap: wrap;
		padding: 40rpx 45rpx 27rpx 29rpx;
		font-weight: 600;
		box-sizing: border-box;
		position: relative;

		.fujianbiao {
			width: 134rpx;
			height: 48rpx;
			position: absolute;
			top: 0;
			bottom: 0;
			right: 56rpx;
			margin: auto;
			background: url('/static/qianbao/fujianbiao.png');
			background-size: 100% 100%;
		}
	}

	.content_box {
		margin-top: 42rpx;
		width: 750rpx;
		padding: 0 25rpx;
		box-sizing: border-box;

		position: relative;

		.content_box_chakan {
			width: 200rpx;
			height: 50rpx;
			line-height: 50rpx;
			text-align: center;
			font-size: 24rpx;
			border-radius: 40rpx;
			background-color: #6F3D00;
			color: #fff;
			// margin-left: 500rpx;
			position: absolute;
			right: 20rpx;
		}

		.label_box {
			.titles {
				font-size: 24rpx;
				color: #999;
				height: 60rpx;
				line-height: 60rpx;
				background-color: rgba(0, 0, 0, .0);
				// background-color: #8a80ff;
			}


			.content {
				width: 700rpx;
				height: 98rpx;
				display: flex;
				background-color: #fff;
				border-radius: 15rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;
				font-size: 30rpx;

				.text {
					margin-left: 56rpx;
					color: #000;
				}

				.copy {
					width: 152rpx;
					border-left: 1px solid #F6F6F6;
					height: 51rpx;
					line-height: 51rpx;
					text-align: center;
					color: #6F3D00;
				}
			}

			.chongzhi_input {
				width: 700rpx;
				height: 98rpx;
				display: flex;
				background-color: #fff;
				border-radius: 15rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;
				font-size: 30rpx;

				input {
					margin-left: 56rpx;
					width: 300rpx;
					height: 98rpx;
					line-height: 98rpx;
				}

				.button {
					background-color: #FAE9C6;
					width: 272rpx;
					height: 98rpx;
					border-radius: 15rpx;
					text-align: center;
					line-height: 98rpx;
					color: #6F3D00;
				}
			}

			.uni-input {
				width: 60% !important;
			}

			.custom-image-box {
				background-color: #fff;
			}
		}
	}


	.copy::after {
		border: none !important;
	}

	.qianyue_anniu {
		width: 650rpx;
		height: 88rpx;
		background: radial-gradient(#FFCA6B, #FFD58C);
		border-radius: 15rpx;
		margin: 20rpx auto;
		text-align: center;
		line-height: 88rpx;
		font-size: 32rpx;
	}

	.weiqianyue {
		width: 134rpx;
		height: 48rpx;
		display: inline-block;
		background: url('/static/qianbao/weiqianyue.png');
		background-size: 100% 100%;
		margin-right: 35rpx;
	}

	.yiqianyue {
		width: 134rpx;
		height: 48rpx;
		display: inline-block;
		background: url('/static/qianbao/jieyue.png');
		background-size: 100% 100%;
		margin-right: 35rpx;
	}

	.yiqianyue1 {
		width: 134rpx;
		height: 48rpx;
		display: inline-block;
		background: url('/static/qianbao/yiqianyue.png');
		background-size: 100% 100%;
		margin-right: 35rpx;
	}
</style>